﻿@using NewLife;
@using NewLife.Web;
@using XCode;
@using xLink.Entity;
@{
    var fact = ViewBag.Factory as IEntityOperate;
    var page = ViewBag.Page as Pager;

    var dic = new Dictionary<Int32, String>();
    dic.Add(1, "成功");
    dic.Add(0, "失败");
}
<div class="tableTools-container list-toolbar">
    <div class="form-inline clear-fix">
        <form action="@Url.Action("index")@Html.Raw("?" + page.GetBaseUrl(false, true, true))" method="post" role="form">
            <div class="pull-right form-group">
                @*<div class="form-group">
                    <label for="type" class="control-label">类型：</label>
                    @Html.ForDropDownList("type", UserHistory.FindAllTypeName(), Request["type"], "全部", true)
                </div>*@
                <div class="form-group">
                    <label for="action" class="control-label">操作：</label>
                    @Html.ForDropDownList("action", UserHistory.FindAllActionName(), Request["action"], "全部", true)
                </div>
                <div class="form-group">
                    <label for="result" class="control-label">结果：</label>
                    @Html.ForDropDownList("result", dic, Request["result"], "全部", true)
                </div>
                <div class="form-group">
                    <label for="dtStart" class="control-label">时间：</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="dtStart" id="dtStart" value="@Request["dtStart"]" dateformat="yyyy-MM-dd" class="form-control form_datetime" />
                    </div>
                </div>
                <div class="form-group">
                    <label for="dtEnd" class="control-label">至</label>
                    <div class="input-group">
                        <span class="input-group-addon"><i class="fa fa-calendar"></i></span>
                        <input name="dtEnd" id="dtEnd" value="@Request["dtEnd"]" dateformat="yyyy-MM-dd" class="form-control form_datetime" />
                    </div>
                </div>
                <div class="input-group btn-toolbar">
                    <input type="hidden" name="TokenID" value="@page["TokenID"]" />
                    @Html.Partial("_List_Toolbar_Search")
                    @Html.Partial("_List_Toolbar_Adv")
                </div>
            </div>
        </form>
    </div>
</div>
